#!/usr/local/bin/python3.6
# coding:utf-8
# @Time    : 2019/11/14 17:04
# @Author  : ZhangBing
# @Email   : 18829272841@163.com
# @File    : manager.py
# @Software: PyCharm
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from app import app
from exts import db
from modules import User, Post  # 导入仓库

manager = Manager(app)  # 格式化app

migrate = Migrate(app, db)  # 关联app和db

manager.add_command('db', MigrateCommand)

if __name__ == "__main__":
    manager.run()
